﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" CodeBehind="Employees.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.Employees" %>

<asp:Content ID="Content3" ContentPlaceHolderID="leftContent" runat="server">
    
    <div class="grid_9">      
            <div class="bottom-spacing">
                <div class="float-right">
                    <a class="button" href="EmployeeEntry.aspx">
                        <span><img width="12" height="9" alt="View List" src="../images/plus-small.gif">Add New</span>
                    </a>
                </div>                                   
            </div>     
            <div class="module">
                    <h2><span>Employees Table</span></h2>
                     
                    <div class="module-body">    
                    <%if(IsSuccess) {%>
                        <div>
                            <span class="notification n-success"><%=NotifyText %></span>
                        </div>
                    <%} %>                                                                           
                    <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand">
                    <HeaderTemplate>
                        <table width="100%" border="0" class="tablesorter">
                            <thead>                                        
                                <th>Id</th>
                                <th>Code</th>
                                <th>Fullname</th>
                                <th>Position</th>
                                <th width="15%"></th>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="odd">                                    
                            <td><%# Eval("Id") %></td>                                        
                            <td><%# Eval("EmployeeCode")%></td>                                    
                            <td><%# Eval("Fullname")%></td>                                    
                            <td><%# Eval("Position")%></td>
                            <td>                                                                        
                                <a href="EmployeeEntry.aspx?id=<%# Eval("Id") %>"><img src="/images/file_explore.png" width="16" height="16" alt="View" /></a>
                                <a href="EmployeeEntry.aspx?id=<%# Eval("Id") %>"><img src="/images/pencil.gif" width="16" height="16" alt="Edit" /></a>
                                <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                            </td>
                        </tr>                            
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="even">                                    
                            <td><%# Eval("Id") %></td>                                        
                            <td><%# Eval("EmployeeCode")%></td>                                    
                            <td><%# Eval("Fullname")%></td>                                    
                            <td><%# Eval("Position")%></td>
                            <td>                                        
                                <a href="EmployeeEntry.aspx?id=<%# Eval("Id") %>"><img src="/images/file_explore.png" width="16" height="16" alt="View" /></a>
                                <a href="EmployeeEntry.aspx?id=<%# Eval("Id") %>"><img src="/images/pencil.gif" width="16" height="16" alt="Edit" /></a>
                                <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                            </td>
                        </tr>                            
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                            </tbody>
                        </table>
                    </FooterTemplate>
                    </asp:Repeater>                            
                                                   
                    </div> <!-- End .module-body -->

            </div>  <!-- End .module -->        		   
                                                            
    </div>
</asp:Content>